#pragma once
#include <Arduino.h>

#define PREF_CFG_NAMESPACE "MYSAVE"

#define PREF_KEYS_PORT_1_CURRENT1 "p11"
#define PREF_KEYS_PORT_1_CURRENT2 "p12"
#define PREF_KEYS_PORT_1_CURRENT3 "p13"
#define PREF_KEYS_PORT_1_CURRENT4 "p14"

#define PREF_KEYS_PORT_2_CURRENT1 "p21"
#define PREF_KEYS_PORT_2_CURRENT2 "p22"
#define PREF_KEYS_PORT_2_CURRENT3 "p23"
#define PREF_KEYS_PORT_2_CURRENT4 "p24"


#define PREF_KEYS_PORT_3_CURRENT1 "p31"
#define PREF_KEYS_PORT_3_CURRENT2 "p32"
#define PREF_KEYS_PORT_3_CURRENT3 "p33"
#define PREF_KEYS_PORT_3_CURRENT4 "p34"


#define PREF_KEYS_PORT_4_CURRENT1 "p41"
#define PREF_KEYS_PORT_4_CURRENT2 "p42"
#define PREF_KEYS_PORT_4_CURRENT3 "p43"
#define PREF_KEYS_PORT_4_CURRENT4 "p44"

// 保存配置
void saveConfigToNVS();

// 从NVS读取配置
void loadConfigFromNVS();
